<?php

namespace api\models;

use Yii;

/**
 * This is the model class for table "{{%process_instance_top_vo}}".
 *
 * @property string $process_instance_id
 * @property string $title
 * @property string $create_time
 * @property string $finish_time
 * @property string $originator_userid
 * @property string $originator_dept_id
 * @property string $status
 * @property string $approver_userid_list
 * @property string $cc_userid_list
 * @property string $form_component_values
 * @property string $process_instance_result
 * @property string $business_id
 */
class ProcessInstanceTopVo extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%process_instance_top_vo}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['process_instance_id', 'title', 'create_time', 'finish_time', 'originator_userid', 'originator_dept_id', 'status', 'approver_userid_list', 'cc_userid_list', 'form_component_values', 'process_instance_result', 'business_id'], 'required'],
            [['approver_userid_list', 'cc_userid_list', 'form_component_values'], 'string'],
            [['process_instance_id', 'title'], 'string', 'max' => 200],
            [['create_time', 'finish_time', 'originator_userid'], 'string', 'max' => 100],
            [['originator_dept_id', 'status', 'process_instance_result', 'business_id'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'process_instance_id' => Yii::t('app', 'Process Instance ID'),
            'title' => Yii::t('app', 'Title'),
            'create_time' => Yii::t('app', 'Create Time'),
            'finish_time' => Yii::t('app', 'Finish Time'),
            'originator_userid' => Yii::t('app', 'Originator Userid'),
            'originator_dept_id' => Yii::t('app', 'Originator Dept ID'),
            'status' => Yii::t('app', 'Status'),
            'approver_userid_list' => Yii::t('app', 'Approver Userid List'),
            'cc_userid_list' => Yii::t('app', 'Cc Userid List'),
            'form_component_values' => Yii::t('app', 'Form Component Values'),
            'process_instance_result' => Yii::t('app', 'Process Instance Result'),
            'business_id' => Yii::t('app', 'Business ID'),
        ];
    }
}
